package com.dgf.nacosconfig;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class NacosConfigApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(NacosConfigApplication.class, args);
//        String userName = applicationContext.getEnvironment().getProperty("user.aa");
//        String userAge = applicationContext.getEnvironment().getProperty("spring.application.name");
//        String port = applicationContext.getEnvironment().getProperty("server.port");
//        System.err.println("user name :"+userName+"; age: "+userAge+"; server.port: "+port);
    }

}
